package com.Oz.Controller;

import com.Oz.Annotation.CurrentLimit;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author Khan Liu
 * @date 2022/7/14 11:21
 */
@RestController
public class TestController {


    @GetMapping("/11")
    @CurrentLimit(second = 1,maxCount = 3)
    public String test(Model model){
        model.addAttribute("tee","123");
        return "123333";
    }
}
